using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using S2Engine.Game;

namespace S2Engine.Spriting
{
    public class Frame
    {
        #region Attributes
        private int delay = 0;
        //private Texture2D texture;
        private Rectangle textureArea;
        #endregion

        #region Ctor
        public Frame(Rectangle textureArea, int delay)
        {
            this.textureArea = textureArea;
            this.delay = delay;
        }
        //public Frame(S2Game game, string texturePath, Rectangle textureArea, int delay)
        //{
        //    //texture = Texture2D.FromFile(game.Graphics.GraphicsDevice, texturePath);
        //    texture = game.Content.Load<Texture2D>(texturePath);
        //    this.delay = delay;
        //}

        //public Frame(Texture2D texture, Rectangle textureArea, int delay)
        //{
        //    this.texture = texture;
        //    this.delay = delay;
        //}

        //public Frame(S2Game game, string texturePath, Rectangle textureArea)
        //{
        //    //texture = Texture2D.FromFile(game.Graphics.GraphicsDevice, texturePath);
        //    texture = game.Content.Load<Texture2D>(texturePath);
        //}

        //public Frame(Texture2D texture,Rectangle textureArea)
        //{
        //    this.texture = texture;
        //}
        #endregion

        #region Properties
        public Rectangle TextureArea
        {
            get { return textureArea; }
        }

        public int Delay
        {
            get { return delay; }
            set { delay = value; }
        }

        #endregion

    }
}
